package com.luoyt.demo

fun main() {
    println(max(10, 5))

    var arr = intArrayOf(1, 2, 3, 5, 6, 7)
    arr.forEach {
        if (it == 3) return@forEach
        println(it)
    }


}

fun max(a: Int, b: Int): Int {
    return if (a > b) a else b
}